/**
 * 
 */
package com.bj58.data.hadoop.info.tools;

import java.util.HashMap;
import java.util.Map;

/**
 * 信息字段工具类
 * @author zhangpeng
 *
 */
public class FieldIndex {
	
	public static final Map<Integer,String> fieldNameMap = new HashMap<Integer,String>();
	
	static
	{
		fieldNameMap.put(1, "InfoID");
		fieldNameMap.put(2, "UserID");
		fieldNameMap.put(3, "UserIP");
		fieldNameMap.put(4, "State");
		fieldNameMap.put(5, "Source");
		
		fieldNameMap.put(6, "Phone");
		fieldNameMap.put(7, "Email");
		fieldNameMap.put(8, "InfoType");
		fieldNameMap.put(9, "IsBiz");
		fieldNameMap.put(10, "Url");
		
		fieldNameMap.put(11, "IsCheck");
		fieldNameMap.put(12, "InsertDate");
		fieldNameMap.put(13, "UpType");
		fieldNameMap.put(14, "CheckType");
		fieldNameMap.put(15, "Title");
		
		fieldNameMap.put(16, "CateID");
		fieldNameMap.put(17, "DisLocalID");
		fieldNameMap.put(18, "Params");
		fieldNameMap.put(19, "UserArg");
		fieldNameMap.put(20, "Pic");
		
		fieldNameMap.put(21, "IsNewPerson");
		fieldNameMap.put(22, "BusinessLine");
	}
	
	/**
	 * 传入字段的位置,返回字段的名称
	 * @param index
	 * @return
	 */
	public static String getFieldName(Integer index)
	{
		return fieldNameMap.get(index);
	}
}
